import service from '@/utils/request'

// @Tags DdmsSpecDrawingNote
// @Summary 创建设计规格图-历史修改备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DdmsSpecDrawingNote true "创建设计规格图-历史修改备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /ddmsSpecDrawingNote/createDdmsSpecDrawingNote [post]
export const createDdmsSpecDrawingNote = (data) => {
  return service({
    url: '/ddmsSpecDrawingNote/createDdmsSpecDrawingNote',
    method: 'post',
    data
  })
}

// @Tags DdmsSpecDrawingNote
// @Summary 删除设计规格图-历史修改备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DdmsSpecDrawingNote true "删除设计规格图-历史修改备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ddmsSpecDrawingNote/deleteDdmsSpecDrawingNote [delete]
export const deleteDdmsSpecDrawingNote = (params) => {
  return service({
    url: '/ddmsSpecDrawingNote/deleteDdmsSpecDrawingNote',
    method: 'delete',
    params
  })
}

// @Tags DdmsSpecDrawingNote
// @Summary 批量删除设计规格图-历史修改备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除设计规格图-历史修改备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ddmsSpecDrawingNote/deleteDdmsSpecDrawingNote [delete]
export const deleteDdmsSpecDrawingNoteByIds = (params) => {
  return service({
    url: '/ddmsSpecDrawingNote/deleteDdmsSpecDrawingNoteByIds',
    method: 'delete',
    params
  })
}

// @Tags DdmsSpecDrawingNote
// @Summary 更新设计规格图-历史修改备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DdmsSpecDrawingNote true "更新设计规格图-历史修改备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /ddmsSpecDrawingNote/updateDdmsSpecDrawingNote [put]
export const updateDdmsSpecDrawingNote = (data) => {
  return service({
    url: '/ddmsSpecDrawingNote/updateDdmsSpecDrawingNote',
    method: 'put',
    data
  })
}

// @Tags DdmsSpecDrawingNote
// @Summary 用id查询设计规格图-历史修改备注
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.DdmsSpecDrawingNote true "用id查询设计规格图-历史修改备注"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /ddmsSpecDrawingNote/findDdmsSpecDrawingNote [get]
export const findDdmsSpecDrawingNote = (params) => {
  return service({
    url: '/ddmsSpecDrawingNote/findDdmsSpecDrawingNote',
    method: 'get',
    params
  })
}

// @Tags DdmsSpecDrawingNote
// @Summary 分页获取设计规格图-历史修改备注列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取设计规格图-历史修改备注列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /ddmsSpecDrawingNote/getDdmsSpecDrawingNoteList [get]
export const getDdmsSpecDrawingNoteList = (params) => {
  return service({
    url: '/ddmsSpecDrawingNote/getDdmsSpecDrawingNoteList',
    method: 'get',
    params
  })
}
